package com.cium.aqie.coroutine.async

import java.util.concurrent.Executors

/**
 * @Function:
 * @Author: aqie
 * @Date: 2019/9/2 20:03
 */
private val pool by lazy {
    Executors.newCachedThreadPool()
}

class AsyncTask(val block: ()-> Unit){
    fun execute() = pool.execute(block)
}